import org.apache.spark.{SparkContext, SparkConf}

/**
  * Created by laiweiwei on 15/11/20.
  */
trait Setup {

  protected val conf = new SparkConf()
    .setAppName(getClass().getSimpleName())
    .setMaster("local")
  protected val ctx = new SparkContext(conf)

}
